<script setup>
import { onMounted, ref } from 'vue'
const images = ref([])
onMounted(async () => {
  const res = await myApi.readImgFiles()
  images.value = res
})
</script>

<template>
  <div class="img-container">
    <img v-for="img in images" :src="`../uploads/${img}`">
  </div>
</template>

<style lang="stylus">
.img-container
  padding 20px
  img
    width 150px
    margin-right 10px
    border 1px solid #ccc
</style>
